﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RRSync.Console
{
    public class Program
    {
        public static void Main(string[] args)
        {
            bool isExit = false;
            string dirPath = @"D:\Projects\RRSync\RRSync.FileGenerator\bin\Debug\Data\Sync";
            string filePath = @"D:\Projects\RRSync\RRSync.FileGenerator\bin\Debug\Data\FileStates.dat";
            SyncRunner runner = new SyncRunner();

            do
            {
                var line = System.Console.ReadLine();

                switch (line)
                {
                    case "Generate":
                        runner.FileStateManager.GenerateFileStates(dirPath);
                        break;
                    case "Save":
                        runner.FileStateManager.SaveStates(filePath);
                        break;
                    case "Load":
                        runner.FileStateManager.LoadStates(filePath);
                        break;
                    case "Sync":
                        runner.FileStateManager.Sync(dirPath);
                        break;
                    case "Exit":
                        isExit = true;
                        break;
                }

            } while (!isExit);
        }
    }
}
